package router

import (
	"fx_swift_boss/internal/controller"
	"github.com/gin-gonic/gin"
)

var miniApiVer *gin.RouterGroup

func InitRouter(g *gin.Engine) {
	installController(g)
}

func installController(engine *gin.Engine) {
	miniApiVer = engine.Group("api/boss")

	miniApiVer.POST("register", controller.Register)
	miniApiVer.POST("login", controller.Login)
	miniApiVer.POST("forgetPassword", controller.ForgetPassword)

	miniApiVer.GET("testRedis", controller.TestRedis)
	miniApiVer.GET("sendMailCode", controller.SendMailCode)
	miniApiVer.GET("managementFee", controller.ManagementFee)

	miniApiVer.GET("getCountryInfo", controller.GetCountryInfo)
	miniApiVer.GET("getForexCountryInfo", controller.GetForexCountryInfo)
	miniApiVer.GET("getCurrencyInfo", controller.GetCurrencyInfo)
	miniApiVer.GET("getPurposeList", controller.GetPurposeList)
	miniApiVer.GET("frontEndConfig", controller.FrontEndConfig)
	miniApiVer.POST("upLoadFiles", controller.UpLoadFiles)
	miniApiVer.POST("uploadComplyFiles", controller.UploadComplyFiles)
	miniApiVer.GET("getProvinceInfo", controller.GetProvinceInfo)
	miniApiVer.GET("getCityInfo", controller.GetCityInfo)
	miniApiVer.GET("getPaymentInfo", controller.GetPaymentInfo)
	miniApiVer.GET("getPaymentPurposeInfo", controller.GetPaymentPurposeInfo)
	miniApiVer.GET("getIncomeSourceInfo", controller.GetIncomeSourceInfo)
	miniApiVer.GET("getCompanyType", controller.GetCompanyType)
	miniApiVer.GET("getBusinessType", controller.GetBusinessType)

	UserRouter()
	CardRouter()
	AgentRouter()

	MerChantVARouter()
	VAINfoRouter()
	PayeeRouter()
	TransferRouter()
	ExchangeCurrencyRouter()
	AuthRouter()
	ComplyRouter()
	CommissionRouter()
	FeeRouter()
	IfcGateAgentRouter()
	PlacardRouter()
}
